import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import * as flatpickr from 'flatpickr';
import { FlatpickrModule, FLATPICKR } from '../../../../../assets/angularx-flatpickr';
import { CustomFormsModule } from 'ng2-validation';
import { AppPaginationModule } from '../../../../widgets/pagination/pagination.module';
import { MultiSelectModule } from 'primeng/components/multiselect/multiselect';
import { FileUploadModule } from 'ng2-file-upload';

import { BatchModeComponent } from '../content/batch-mode/batch-mode.component';


export function flatpickrFactory() {
  return flatpickr;
}
@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    AppPaginationModule,
    MultiSelectModule,
    CustomFormsModule,
    FileUploadModule,
    FlatpickrModule.forRoot({
      provide: FLATPICKR,
      useFactory: flatpickrFactory
    })
  ],
  declarations: [
    BatchModeComponent
  ],
  entryComponents: [
    BatchModeComponent
  ]
})
export class NqdiiShareModule { }
